
const {DataTypes} = require('sequelize')
const seq = require('../db/seq')
const User = seq.define('zd_wx_user', {
    openId: {
        type: DataTypes.STRING,
        allowNull: true,
        unique: true,
        comment: "openId用户名不为空"
    },
    avatarUrl: {
        type: DataTypes.STRING,
        allowNull: true,
        unique: true,
        comment: "用户名不为空"
    },
    name: {
        type: DataTypes.STRING,
        allowNull: true,
        unique: true,
        comment: "用户名不为空"
    },

})
// 强制创建数据表
// User.sync({ force: true })
module.exports = User